
<!--
	user list !
-->
<h3>{{rootColumnName}}
    <small>{{rootColumnPrompt}}</small>
</h3>
<div  ng-controller="masterCtrl" class="panel panel-default">
    <div class="panel-heading">
        <form class="form-inline">
            <div class="form-group">
                <label for="">{{fieldSelectName}} : </label>
                <select class="custom-css form-control"  ng-model="fieldSelectValue" ng-change="dataChange()" ng-options="fieldSelectValue.name for fieldSelectValue in realmList" >
                </select>
                <label for="searchInput"></label>
                <input type="text" ng-keyup="dataEvent($event)"  ng-model="searchKey" class="form-control" style="width: 400px" id="searchInput" placeholder="{{searchplaceholder}}">
            </div>
        </form>
    </div>
    <div class="panel-body " ng-class="loading?'whirl standard':'' " style="border-top: 1px solid #CFDBE2;">
        <table class="table table-striped table-condensed">
            <thead>
            <tr>
                <th>排序</th>
                <th>姓名</th>
                <th>幸会号</th>
                <th>影响力</th>
                <th>手机号</th>
                <th>排序</th>
                <th>置顶</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <!-- repeat begin -->
            <tr ng-repeat="userItem in mobileUserList ">
                <th><input type="text" style="width:40px;text-align: center"  placeholder="{{userItem.sort}}" ng-keyup="sortEvent($event,userItem.sort,userItem.user.userId,this)" id="sortTarget" ng-model="sortTarget" ></th>
                <td>{{userItem.user.name | null_value_filter}}</td>
                <td>{{userItem.imeetId | null_value_filter}}</td>
                <td>{{userItem.score | null_value_filter}}</td>
                <td>{{userItem.user.phoneNo}}</td>
                <td>
                    <a ng-disabled="$index==0&&turnPage.currentPage==1" tooltip="升序" tooltip-trigger="mouseenter" class="btn btn-xs btn-danger" ng-click="fnSort(userItem.user.userId,1)" ng-disabled="fieldSelectValue.realmId"><i class="fa fa-long-arrow-up"></i></a>
                    <a ng-disabled="dataLength==$index+(turnPage.currentPage-1)*10+1" tooltip="降序" tooltip-trigger="mouseenter" class="btn btn-xs btn-success" ng-click="fnSort(userItem.user.userId,2)" ng-disabled="fieldSelectValue.realmId"><i class="fa fa-long-arrow-down"></i></a>
                </td>
                <td>
                    <a tooltip="置顶" tooltip-trigger="mouseenter" class="btn btn-xs btn-default" ng-show="true" ng-click="fnToTop(userItem.user.userId)"><i class="fa fa-caret-square-o-up"></i></a>
                </td>
                <td>
                    <a tooltip="查看" tooltip-trigger="mouseenter" class="btn btn-xs btn-primary" ui-sref="cms.userDetail({ appUserId : userItem.user.userId})"><i class="fa fa-eye"></i></a>
                    <button tooltip="移除营销达人" tooltip-trigger="mouseenter" class="btn btn-xs btn-warning" ng-click="removeMasterList(userItem.user.userId)"><i class="fa fa-trash-o"></i></button>
                </td>
            </tr>
            <!-- repeat end -->
            </tbody>
        </table>
        <p style="display: inline-block; margin:21px 0;height: 30px;line-height: 30px;"> 显示 <strong>{{turnPage.totalItems}}</strong> 条中的 <strong>{{turnPage.itemsPerPage*(turnPage.currentPage-1)+1}}-{{ToNum}}</strong> 条</p>
        <pagination class="pull-right" first-text="{{turnPage.firstText}}" previous-text="{{turnPage.previousText}}" next-text="{{turnPage.nextText}}" last-text="{{turnPage.lastText}}" total-items="turnPage.totalItems" ng-model="turnPage.currentPage" max-size="turnPage.maxSize"
                    num-pages="numPages" boundary-links="true" ng-change="dataChange()" class="pagination-sm">
        </pagination>
    </div>
</div>